#ifndef AVATARMODIFYTHREAD_H
#define AVATARMODIFYTHREAD_H

#include "0-data/avatar.h"

#include <QThread>

class AvatarModifyThread : public QThread
{
    Q_OBJECT
public:
    enum enum_work_type
    {
        ENUM_INSERT = 0,
        ENUM_DELETE
    };

public:
    AvatarModifyThread(QObject *parent = nullptr);

public:
    void SetParams(const QList<Avatar> &avatar, const int work_type);

public:
    void run() override;

private:
    QList<Avatar> avatars_;

    int work_type_;
};

#endif // AVATARMODIFYTHREAD_H
